//
//  ADBannerView.h
//  RainbowFM
//
//  Created by chenli on 14/12/28.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ADBannerViewDelegate <NSObject>

@optional
-(void)adBannerSelectedIndex:(NSInteger)index;

@end

@interface ADBannerView : UIView<UICollectionViewDelegate,UICollectionViewDataSource,UIScrollViewDelegate>

@property (nonatomic,assign) BOOL scorllAnimation;
@property (nonatomic,strong) NSArray *listArray;

@property (nonatomic,weak) IBOutlet UIPageControl *pageControl;
@property (nonatomic,weak) IBOutlet UICollectionView *collectionView;

@property (nonatomic,assign) id<ADBannerViewDelegate>delegate;

-(void)show;

@end
